def f1():
    import random
    with open("ips.txt",mode='a+') as wj:
        b = []
        for i in range(0,255):
            b.append(f"172.25.154.{i}")
        d = []
        for i in range(1,120000):
            a = random.randint(0,254)
            wj.write(f"172.25.154.{a}\n")
            d.append(f"172.25.154.{a}")
        c = []
        e = {}
        for i in range(0,len(b)):
            c.append(d.count(b[i]))
            e[b[i]] = c[i]
        f = sorted(e.items(), key=lambda x:x[1])
        f.reverse()
        for i in range(10):
            print(f[i])
    return 0
f1()
